package com.xyh.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.stereotype.Component;

/**
 * @Author:kyle
 * @Date:2020/12/23 - 14:22
 * @Project:spring_StudentsDormitoryManagementSystem
 * @Package:com.xyh.po
 * @Version:1.0
 */
@Getter
@Setter
@NoArgsConstructor
@Component
@TableName("t_permission")
public class Permission {
    @TableId(value = "permission_pkid",type = IdType.AUTO)
    private Integer permissionPkId;
    private String permissionName;
    private String permissionInfo;
    private String moduleUrl;
    //主副菜单id
    private Integer pid;

    @Override
    public String toString() {
        return "Permission{" +
                "permissionPkId=" + permissionPkId +
                ", permissionName='" + permissionName + '\'' +
                ", permissionInfo='" + permissionInfo + '\'' +
                ", moduleUrl='" + moduleUrl + '\'' +
                ", pid=" + pid +
                '}';
    }
}

